//
//  TopicCommentCell.m
//  Leisure
//
//  Created by xalo on 16/7/1.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "TopicCommentCell.h"

@interface TopicCommentCell ()
@property (weak, nonatomic) IBOutlet UILabel *addtime_f;
@property (weak, nonatomic) IBOutlet UILabel *username;

@end


@implementation TopicCommentCell

-(void)setCellWithModel:(TopicListModel *)model{
    [self.iconImage sd_setImageWithURL:[NSURL URLWithString:model.icon]];
    self.addtime_f.text = model.addtime_f;
    self.username.text = model.uname;
    self.content.text = model.content;
//    [self.content setFrame:CGRectMake(self.content.frame.origin.x, self.content.frame.origin.y, self.content.frame.size.width,  [self.content sizeThatFits:CGSizeMake(self.content.frame.size.width, CGFLOAT_MAX)].height)];
    self.content.numberOfLines = 0;
    
    
    
}



-(CGFloat)returnHeightOfCell{
    
    
    
    return [self.content sizeThatFits:CGSizeMake(kWidths, CGFLOAT_MAX)].height+50;
    
}

- (void)awakeFromNib {
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
